
#import <Foundation/Foundation.h>

@interface NSDate (XMExtension)

- (BOOL)xm_isThisYear;

- (BOOL)xm_isToday;

- (BOOL)xm_isYesterday;

- (BOOL)xm_isThisWeek;

- (BOOL)xm_isTomorrow;

- (BOOL)xm_isQianTian;

+ (NSDate *)getTomorrowDate;

+ (NSDate *)getAWeekLaterDate;

+ (NSDate *)getAfterSomeDayDateWithDayCount:(NSInteger)count;

+ (NSString *)timeAgoWithDateStr:(NSString *)dateStr;

+ (NSString *)chatTimeAgoWithTimestamp:(double)timeIntervalInMilliSecond;

//获取剩余支付时间 10封顶
+ (NSString *)remainingTime:(NSString *)acceptTime;
//验证码倒计时
+ (NSInteger)identifyingCodeRemainingTime:(NSDate *)obtainTime;
//我接她倒计时
+ (NSTimeInterval)meetRemainingTime:(NSDate *)acceptTimeDate cd:(double)second;
//异步获取网络时间
+ (void)asyncGetInternetDate:(void(^)(NSDate *date))block;
@end
